Skip to content

Conversation

@felixge
Copy link
Member

@felixge felixge commented Oct 23, 2025

Continuation of #4061

PROF-12822

What does this PR do?

Motivation

Reviewer's Checklist

  • Changed code has unit tests for its functionality at or near 100% coverage.
  • System-Tests covering this feature have been added and enabled with the va.b.c-dev version tag.
  • There is a benchmark for any new code, or changes to existing code.
  • If this interacts with the agent in a new way, a system test has been added.
  • New code is free of linting errors. You can check this by running ./scripts/lint.sh locally.
  • Add an appropriate team label so this PR gets put in the right place for the release notes.
  • Non-trivial go.mod changes, e.g. adding new modules, are reviewed by @DataDog/dd-trace-go-guild.

Unsure? Have a question? Request a review!

@pr-commenter
Copy link

pr-commenter bot commented Oct 23, 2025

Benchmarks

Benchmark execution time: 2025-10-25 18:19:15

Comparing candidate commit af313cc in PR branch felix.geisendoerfer/chore-enable-shuffle-testing-for-contrib-packages with baseline commit 56a1413 in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 24 metrics, 0 unstable metrics.

@felixge felixge force-pushed the felix.geisendoerfer/chore-enable-shuffle-testing-for-contrib-packages branch 2 times, most recently from ceddef6 to 722d24a Compare October 23, 2025 04:47
@datadog-official
Copy link
Contributor

datadog-official bot commented Oct 23, 2025

⚠️ Tests

⚠️ Warnings

❄️ 1 New flaky test detected

TestMultipleSpanIntegrationTags from github.com/DataDog/dd-trace-go/v2/ddtrace/tracer (Datadog)
Failed

=== RUN   TestMultipleSpanIntegrationTags
    metrics_test.go:219: 
        	Error Trace:	/home/runner/work/dd-trace-go/dd-trace-go/ddtrace/tracer/metrics_test.go:219
        	Error:      	Condition never satisfied
        	Test:       	TestMultipleSpanIntegrationTags
panic: not implemented

goroutine 1357 [running]:
...

ℹ️ Info

🧪 All tests passed

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: af313cc | Docs | Was this helpful? Give us feedback!

@felixge felixge force-pushed the felix.geisendoerfer/chore-enable-shuffle-testing-for-contrib-packages branch 4 times, most recently from 6ef48d0 to 25903ed Compare October 25, 2025 12:28
Fix slog and logrus to pass their test suite when shuffle testing is
enabled. In particular, fix the following two test invocations.

go test -test.shuffle 1761195191840193457 ./contrib/log/slog/
go test -test.shuffle 176139568378992735 ./contrib/sirupsen/logrus/ -count 2
The TestServiceName test was failing when run with certain shuffle
seeds, e.g.:

test -test.shuffle 1761392205507602000 ./contrib/gin-gonic/gin/ 

This was caused by TestTracerStartedMultipleTimes setting a global
service name without restoring the old one.

Fix the problem by making TestTracerStartedMultipleTimes clean up after
itself.
@felixge felixge force-pushed the felix.geisendoerfer/chore-enable-shuffle-testing-for-contrib-packages branch from 25903ed to af313cc Compare October 25, 2025 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant